package com.xayy.ds.service;


import cn.kawins.base.result.CheckResult;
import com.xayy.ds.model.DsEquipTreeInfo;
import java.util.List;

import com.xayy.mgt.model.EquipTreeInfo;
import com.xtck.ha.common.core.web.service.IBaseService;
/**
* @ClassName: DsEquipTreeInfoService
* @Description: DsEquipTreeInfo业务访问接口
* @author liuyuan
* @date 2025-07-03
*/
public interface DsEquipTreeInfoService extends IBaseService<DsEquipTreeInfo> {
    CheckResult<Object> getEquipTree();

    /**
     * 新增树节点
     *
     * @param equipTreeInfo
     *            节点对象
     * @return CheckResult
     */
    CheckResult<Object> addOrUpdate(DsEquipTreeInfo equipTreeInfo);

    /**
     * 删除树节点
     *
     * @param id
     *            节点id
     * @return CheckResult
     */
    CheckResult<Object> deleteTreeById(Long id);

    /**
     * 根据id查询单个节点数据
     *
     * @param id
     *            节点id
     * @return CheckResult
     */
    CheckResult<Object> getTreeById(Long id);

    CheckResult<Object> getEquipNodeTree();

    /**
     * 获取节点数据N-N
     * @param number 减去最后层次数量
     * @return CheckResult
     */
    CheckResult<Object> getEquipNodeTreeForNumber(Integer number);
}

